package com.itheima.health.dao;

import com.itheima.health.dto.OrderSettingParam;
import com.itheima.health.dto.OrderSubmitParam;
import com.itheima.health.dto.VeiflcationcodeParam;
import com.itheima.health.pojo.Order;
import com.itheima.health.pojo.User;
import org.apache.ibatis.annotations.*;

import java.util.Date;

@Mapper
public interface OrdersubmitDao {
/*
* 添加预约
* */

    void addsubmit(OrderSubmitParam orderSubmitParam);
/*
* 查询验证码表 查看验证码是否一值
* */
    @Select("select * from t_veriflcationcode where telephone=#{telephone}")
    VeiflcationcodeParam selectCode(String telephone);
/*
* 根据时间查询预约人数是否已满
* */

    OrderSettingParam selectnumber(Date orderDate);
/*
* 添加会员
* */
    void addOrder(Order order);
/*
* 查询是否重负预约
* */

    Integer selectrepeat(Date orderDate, String idCard);
}
